package br.com.financas.entity;

import java.io.Serializable;
import java.util.Date;

public class DespesaDataPK implements Serializable {
	
	private static final long serialVersionUID = -6208557149407212490L;
	
	private long despesa;
	private Date data;

	public DespesaDataPK() {

	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((data == null) ? 0 : data.hashCode());
		result = prime * result + (int) (despesa ^ (despesa >>> 32));
		return result;
	}


	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		DespesaDataPK other = (DespesaDataPK) obj;
		if (data == null) {
			if (other.data != null)
				return false;
		} else if (!data.equals(other.data))
			return false;
		if (despesa != other.despesa)
			return false;
		return true;
	}


	public long getDespesa() {
		return despesa;
	}

	public void setDespesa(long despesa) {
		this.despesa = despesa;
	}

	public Date getData() {
		return data;
	}

	public void setData(Date data) {
		this.data = data;
	}

		
}
